package com.ruoyi.system.domain;

import java.math.BigDecimal;
import java.util.Date;
import javax.validation.constraints.*;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 用户信用信息对象 credit_user_info
 * 
 * @author ruoyi
 * @date 2025-01-28
 */
public class CreditUserInfo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 用户ID */
    @Excel(name = "用户ID")
    private Long userId;

    /** 身份证号 */
    @Excel(name = "身份证号")
    private String idCard;

    /** 信用分 */
    @Excel(name = "信用分")
    private Integer creditScore;

    /** 信用生活服务分 */
    @Excel(name = "信用生活服务分")
    private Integer lifeServiceScore;

    /** 信用商业服务分 */
    @Excel(name = "信用商业服务分")
    private Integer businessScore;

    /** 亲社会行为分 */
    @Excel(name = "亲社会行为分")
    private Integer socialScore;

    @Excel(name = "邮箱")
    private String email;
    @Excel(name = "性别")
    private String sex;
    /** 年龄 */
    @Excel(name = "年龄")
    private Integer age;

    /** 职业 */
    @Excel(name = "职业")
    private String occupation;

    /** 收入 */
    @Excel(name = "收入")
    private BigDecimal income;

    /** 省份 */
    @Excel(name = "省份")
    private String province;

    /** 城市 */
    @Excel(name = "城市")
    private String city;

    /** 信用分最后更新时间 */
    @Excel(name = "信用分最后更新时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date lastUpdateTime;

    /** 用户名称（关联查询） */
    private String userName;

    /** 手机号码（关联查询） */
    private String phonenumber;

    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }

    public void setIdCard(String idCard) 
    {
        this.idCard = idCard;
    }

    @Size(max = 18, message = "身份证号长度不能超过18个字符")
    public String getIdCard() 
    {
        return idCard;
    }
    public String getEmail() {
        return email;
    }
    public void setEmail(String email) {
        this.email = email;
    }

    public String getSex() {
        return sex;
    }
    public void setSex(String sex) {
        this.sex = sex;
    }
    public void setCreditScore(Integer creditScore) 
    {
        this.creditScore = creditScore;
    }

    public Integer getCreditScore() 
    {
        return creditScore;
    }

    public void setLifeServiceScore(Integer lifeServiceScore) 
    {
        this.lifeServiceScore = lifeServiceScore;
    }

    public Integer getLifeServiceScore() 
    {
        return lifeServiceScore;
    }

    public void setBusinessScore(Integer businessScore) 
    {
        this.businessScore = businessScore;
    }

    public Integer getBusinessScore() 
    {
        return businessScore;
    }

    public void setSocialScore(Integer socialScore) 
    {
        this.socialScore = socialScore;
    }

    public Integer getSocialScore() 
    {
        return socialScore;
    }

    public void setAge(Integer age) 
    {
        this.age = age;
    }

    public Integer getAge() 
    {
        return age;
    }

    public void setOccupation(String occupation) 
    {
        this.occupation = occupation;
    }

    @Size(max = 50, message = "职业长度不能超过50个字符")
    public String getOccupation() 
    {
        return occupation;
    }

    public void setIncome(BigDecimal income) 
    {
        this.income = income;
    }

    public BigDecimal getIncome() 
    {
        return income;
    }

    public void setProvince(String province) 
    {
        this.province = province;
    }

    @Size(max = 50, message = "省份长度不能超过50个字符")
    public String getProvince() 
    {
        return province;
    }

    public void setCity(String city) 
    {
        this.city = city;
    }

    @Size(max = 50, message = "城市长度不能超过50个字符")
    public String getCity() 
    {
        return city;
    }

    public void setLastUpdateTime(Date lastUpdateTime) 
    {
        this.lastUpdateTime = lastUpdateTime;
    }

    public Date getLastUpdateTime() 
    {
        return lastUpdateTime;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPhonenumber() {
        return phonenumber;
    }

    public void setPhonenumber(String phonenumber) {
        this.phonenumber = phonenumber;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("userId", getUserId())
            .append("idCard", getIdCard())
            .append("creditScore", getCreditScore())
            .append("lifeServiceScore", getLifeServiceScore())
            .append("businessScore", getBusinessScore())
            .append("socialScore", getSocialScore())
            .append("age", getAge())
            .append("occupation", getOccupation())
            .append("income", getIncome())
            .append("province", getProvince())
            .append("city", getCity())
            .append("lastUpdateTime", getLastUpdateTime())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
} 